import request from '@/utils/request'

// 获取权限列表数据
export function getRightList() {
  return request({
    url: '/admin/ucenter/right/getRightsNestedList',
    method: 'GET'
  })
}

// 根据权限名查找权限 id
export function getRightId(rightName) {
  return request({
    url: `/admin/ucenter/right/getRightId/${rightName}`,
    method: 'GET'
  })
}
